﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZilLion.Service.Core.CRMUnities.Config;
using ZilLion.Service.Core.DapperWrapper;

namespace DapperWrapper
{
    public class SourceBContext : IDbContext
    {
        public static string _systemDataConnectionString;

        public static string SystemDataConnectionString
        {
            get
            {
                string str = ConfigurationManager.ConnectionStrings["DefaultConnection3"].ToString();
                return str;
            }
        }

        public IDbConnection GetConnection()
        {
            DbConnection connection = new SqlConnection(SystemDataConnectionString);
            return connection;
        }

        public short mizhch { get; set; }


        public string mikvname
        {
            get { return "BSource"; }
        }

        public string ContextName => throw new NotImplementedException();
    }
}
